package com.wentao.mall.dao

import com.wentao.mall.api.TodayInfo
import org.springframework.data.jpa.repository.JpaRepository

interface TodayInfoDao : JpaRepository<TodayInfo, Int> {
//    fun findByUserIdOrderByDateDesc(userId: Int): TodayInfo?
    fun findByUserIdAndDate(userId: Int, date: String): TodayInfo?
}